<?php if (!defined('THINK_PATH')) exit(); /*a:6:{s:32:"themes/paiban/portal\search.html";i:1524801160;s:82:"F:\phpStudy\PHPTutorial\WWW\local05\thinkcmf\public\themes\paiban\public\head.html";i:1524722303;s:86:"F:\phpStudy\PHPTutorial\WWW\local05\thinkcmf\public\themes\paiban\public\function.html";i:1524709905;s:81:"F:\phpStudy\PHPTutorial\WWW\local05\thinkcmf\public\themes\paiban\public\nav.html";i:1524790448;s:84:"F:\phpStudy\PHPTutorial\WWW\local05\thinkcmf\public\themes\paiban\public\footer.html";i:1524709395;s:85:"F:\phpStudy\PHPTutorial\WWW\local05\thinkcmf\public\themes\paiban\public\scripts.html";i:1524711386;}*/ ?>
<!DOCTYPE html>
<html>

	<head>
		<title>搜索 <?php echo (isset($theme_vars['varName1']) && ($theme_vars['varName1'] !== '')?$theme_vars['varName1']:''); ?></title>
		
<?php 
/*可以加多个方法哟！*/
function _sp_helloworld(){
	echo "牛逼啊!";
}

function _sp_helloworld2(){
	echo "hello ThinkCMF2!";
}


function _sp_helloworld3(){
	echo "hello ThinkCMF3!";
}

 ?>
<meta charset="UTF-8">
<meta name="keywords" content="关键字">
<meta name="description" content="网站描述">
<meta name="author" content="edit by Binggen">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" type="text/css" href="/themes/paiban/public/assets/css/reset.css"/>
<link rel="stylesheet" href="/themes/paiban/public/assets/layui/css/layui.css">
<link rel="stylesheet" href="/themes/paiban/public/assets/css/index.css">
<link rel="shortcut icon" href="favicon.ico">

	</head>

	<body>
		<div class="pages">
			
	<nav class="header">
		<div class="wrapper">
			<a class="logo thunbnail-h" href="/"><img src="/themes/paiban/public/assets/images/logo.png" alt="一键排版系统"></a>
			<?php

function __parse_navigation68c95204e59507649588b76a6e3f8521($menus,$level=1){
$_parse_navigation_func_name = '__parse_navigation68c95204e59507649588b76a6e3f8521';
if(is_array($menus) || $menus instanceof \think\Collection || $menus instanceof \think\Paginator): if( count($menus)==0 ) : echo "" ;else: foreach($menus as $key=>$menu): if(empty($menu['children'])): ?>
    <li class="menu-item menu-item-level-<?php echo $level; ?>">
    
					<a href="<?php echo (isset($menu['href']) && ($menu['href'] !== '')?$menu['href']:''); ?>" target="<?php echo (isset($menu['target']) && ($menu['target'] !== '')?$menu['target']:''); ?>"><?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?></a>
				
    </li>
<?php endif; if(!empty($menu['children'])): ?>
    <li class="dropdown dropdown-custom dropdown-custom-level-<?php echo $level; ?>">
        
					<a href="#" class="dropdown-toggle dropdown-toggle-<?php echo $level; ?>" data-toggle="dropdown">
						<?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?><span class="caret"></span>
					</a>
				
        <ul class="dropdown-menu dropdown-menu-level-<?php echo $level; ?>">
            <?php 
            $mLevel=$level+1;
             ?>
            <?php echo $_parse_navigation_func_name($menu['children'],$mLevel); ?>
        </ul>
    </li>
<?php endif; endforeach; endif; else: echo "" ;endif; 
}

    $navMenuModel = new \app\admin\model\NavMenuModel();
    $menus = $navMenuModel->navMenusTreeArray('1',0);
if('ul'==''): ?>
    <?php echo __parse_navigation68c95204e59507649588b76a6e3f8521($menus); else: ?>
    <ul id="navigation" class="navigation">
        <?php echo __parse_navigation68c95204e59507649588b76a6e3f8521($menus); ?>
    </ul>
<?php endif; ?>

			<div class="login-mark-box">
				<!--<button class="login-btn" type="button">登录</button>-->
			</div>
		</div>
	</nav>



			<div class="content academic-con">
				<div class="inside-banner news-banner"></div>
				<!--资讯列表-->
				<div class="section">
					<div class="wrapper news-con clearfix">
						<div class="news-box left">


							<!--资讯列表-->
							<div class="main-title" style="margin: 18px">
								<h3>'<?php echo $keyword; ?>' 搜索结果 </h3>
							</div>
							<?php 
								$where=[
								'post.create_time'=>['egt',0],
								'post.post_title'=>['like',"%$keyword%"]
								];
								$page=[
								'list_rows'=>10,
								'next'=>'下一页',
								'prev'=>'上一页'
								];
							 ?>
							<ul class="news-lists">
								<?php
$articles_data = \app\portal\service\ApiService::articles([
    'field'   => '',
    'where'   => $where,
    'limit'   => '',
    'order'   => 'post.create_time DESC',
    'page'    => $page,
    'relation'=> 'categories',
    'category_ids'=>''
]);

$__PAGE_VAR_NAME__ = isset($articles_data['page'])?$articles_data['page']:'';

 if(is_array($articles_data['articles']) || $articles_data['articles'] instanceof \think\Collection || $articles_data['articles'] instanceof \think\Paginator): $i = 0; $__LIST__ = $articles_data['articles'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

									<li>
										<a class="clearfix" href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['id'])); ?>">
											<?php if(!(empty($vo['more']['thumbnail']) || (($vo['more']['thumbnail'] instanceof \think\Collection || $vo['more']['thumbnail'] instanceof \think\Paginator ) && $vo['more']['thumbnail']->isEmpty()))): ?>
												<div class="cover-bg" style="background-image: url('<?php echo cmf_get_image_url($vo['more']['thumbnail']); ?>')"></div>
											<?php endif; ?>
											<div class="news-txt">
												<span class="title"><?php echo $vo['post_title']; ?></span>
												<p><?php echo $vo['post_excerpt']; ?></p>
												<span class="date"><?php echo date('Y-m-d',$vo['create_time']); ?></span>
											</div>
										</a>
									</li>
								
<?php endforeach; endif; else: echo "" ;endif; ?>
								<div class="pagination">
									<?php
     echo empty($__PAGE_VAR_NAME__)?'':$__PAGE_VAR_NAME__;
 ?>
								</div>
							</ul>
							<!--资讯列表END-->

							<!--分页-->
							<div class="pages-more">
								<ul class="pagination">
									<?php
     echo empty($__PAGE_VAR_NAME__)?'':$__PAGE_VAR_NAME__;
 ?>
								</ul>
							</div>
							<!--分页END-->
						</div>
						<div class="news-recommend right">
							<div class="news-serach">
								<form action="<?php echo cmf_url('portal/Search/index'); ?>" method="post" class="news-serach-form">
									<input type="text" name="keyword"  value="<?php echo input('param.keyword',''); ?>" placeholder="请输入关键词">
									<button type="submit" class="search-btn"></button>
								</form>
							</div>

							<p class="title">重要公告</p>
							<?php 
								$hot_articles=[];
							 ?>
							<ul class="recommend-infos">
								<?php
$articles_data = \app\portal\service\ApiService::articles([
    'field'   => '',
    'where'   => "",
    'limit'   => '5',
    'order'   => 'post.post_hits DESC',
    'page'    => '',
    'relation'=> '',
    'category_ids'=>''
]);

$__PAGE_VAR_NAME__ = isset($articles_data['page'])?$articles_data['page']:'';

 if(is_array($articles_data['articles']) || $articles_data['articles'] instanceof \think\Collection || $articles_data['articles'] instanceof \think\Paginator): $i = 0; $__LIST__ = $articles_data['articles'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;$top=$key<3?"top3":""; ?>
									<li class="<?php echo $top; ?>">
										<a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['id'])); ?>">
											<i class="sort-num"><?php echo $key+1; ?></i>
											<div class="recommend-txt">
												<h4 class="txt-overflow"><?php echo $vo['post_title']; ?></h4>
												<span>2017-12-09</span>
											</div>
										</a>
									</li>
								
<?php endforeach; endif; else: echo "" ;endif; ?>
							</ul>
						</div>
					</div>
				</div>

			</div>
		</div>
		<!--主体END-->

		<div class="footer">
	<div class="wrapper section clearfix">
		<div class="footer-left">
			<p>联系我们</p>
			<p class="phone-num">027-87659198</p>
			<p>周一至周五 9：00-18：00</p>
		</div>
		<div class="footer-middle">
			<div class="clearfix">
				<span class="title">友情链接：</span>
				<ul class="friends-link">
					<li><a href="http://www.baokan.net.cn/" target="_blank">湖北报刊编辑经营服务有限公司</a></li>
					<li><a href="http://www.yungeng.org/" target="_blank">云耕创意（武汉）科技有限公司</a></li>
				</ul>
			</div>
			<div class="copyright">
				<p>Copyright &copy;
					<script>document.write(new Date().getFullYear())</script>
					<a href="" target="_blank">baokan.net.cn</a> All Rights Reserved
				</p>
				<a href="http://www.miibeian.gov.cn/publish/query/indexFirst.action" target="_blank">鄂ICP备18001010号</a>
			</div>
		</div>
		<div class="footer-qrcode">
			<p>官方微信公众号</p>
			<div class="thumbnail-w">
				<img src="/themes/paiban/public/assets/images/qrcode.png" alt="湖北报刊编辑经营服务有限公司微信公众号">
			</div>
		</div>
	</div>
</div>

		</div>

		<!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
	<script src="/themes/paiban/public/assets/js/jquery.min.js"></script>
	<script src="/themes/paiban/public/assets/layui/layui.js"></script>
	<script src="/themes/paiban/public/assets/js/common.js"></script>
	<script>
	$(function(){



		
	});
	</script>



		<script>
			$(function () {
				var layer=null;
				layui.use('layer', function(){
					layer=layui.layer;
				});

				var $goal=$(".news-recommend"),
					goalH=$goal.offset().top-90;
				$(window).scroll(function () {
					var scrollTop = $(this).scrollTop();
					(scrollTop >= goalH) ? ($goal.addClass('news-recommend-fixed')) : ($goal.removeClass('news-recommend-fixed'));
				});

			});

		</script>
		<?php 
    \think\Hook::listen('before_body_end',$temp5ae29e8f0e1c9,null,false);
 ?>

	</body>

</html>